package project.shared.messages;

import project.shared.player.Player;

/**
 * The Class StartMessage - used to send the information required for starting
 * the game.
 */
public class StartMessage extends Message {

	/** The universal version identifier. */
	private static final long serialVersionUID = 1L;

	/** The game id. */
	transient public int gameId;

	/** The first player object. */
	public Player p1;

	/** The second player object. */
	public Player p2;

	/** The third player object. */
	public Player p3;

	/**
	 * Instantiates a new start message.
	 * 
	 * @param gameId
	 *            the game id
	 * @param p1
	 *            the first player object
	 * @param p2
	 *            the second player object
	 * @param p3
	 *            the third player object
	 */
	public StartMessage(int gameId, Player p1, Player p2, Player p3) {
		this.gameId = gameId;
		this.p1 = p1;
		this.p2 = p2;
		this.p3 = p3;
	}
}